package com.dt76.smallloanfrontendservice.service.xiaohao.impl;

import com.dt76.smallloanfrontendservice.mapper.xiaohao.BorrowOrderMapper;
import com.dt76.smallloanfrontendservice.pojo.xiaohao.BorrowOrder;
import com.dt76.smallloanfrontendservice.service.xiaohao.BorrowOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BorrowOrderServiceImpl implements BorrowOrderService {

    @Resource
    private BorrowOrderMapper borrowOrderMapper;

    @Override
    public int addBorrowOrder(BorrowOrder borrowOrder) {
        return borrowOrderMapper.addBorrowOrder(borrowOrder);
    }

    @Override
    public List<BorrowOrder> qryAllBorrowOrderByUId(int userId) {
        return borrowOrderMapper.qryAllBorrowOrderByUId(userId);
    }

    @Override
    public BorrowOrder qryBorrowOrderBybOID(int boId) {
        return borrowOrderMapper.qryBorrowOrderBybOID(boId);
    }
}
